using System.Collections.Generic;
using jcs.Core.Data;
using jcs.Ifc.SSManager;
using jcs.Dat.SSManager;
using System;

namespace jcs.Biz.SSManager
{
    public class SnapshotController : ISnapshotController
    {
        private const string SnapShotExtension = "_snap";

        public Boolean CreateSnapshot(ISnapshot snapShot, string extension)
        {
            return jcs.Dat.SSManager.SnapshotProvider.CreateSnapshot(snapShot);
        }

        public Boolean DeleteSnapshots(List<string> names, string extension)
        {
            return jcs.Dat.SSManager.SnapshotProvider.DeleteSnapshots(names, extension);
        }

        public List<ISnapshot> ExistingSnapshots { get { return GetSnapshots(); } }
        private static List<ISnapshot> GetSnapshots()
        {

            List<ISnapshot> ReturnValue = null;

            ReturnValue = SnapshotProvider.GetExistingSnapshots(SnapShotExtension);

            return ReturnValue;
        }



    }
}